function [lambda_array] = generate_a_sequence(lambda_max, lambda_min)


lambda = lambda_max;
lambda_array = lambda;

terminating_condition = lambda < lambda_min;

while ~terminating_condition
if min(lambda_array) > 1
    lambda = lambda / 2;
    lambda_array = [lambda_array; lambda];
else
    lambda = lambda / 1e2;
    lambda_array = [lambda_array; lambda];
end 
terminating_condition = lambda < lambda_min;
end

lambda_array(end) = lambda_min; % Just incase.

return;